package com.xcity.game.battle.pve.employee.impl;

import com.xcity.game.battle.pve.PlayerBattler;
import com.xcity.game.battle.pve.employee.EmployeeSkillBattleContext;
import com.xcity.game.common.GameStaticConfig;
import com.xcity.game.employee.skill.EmployeeSkill;

////26		财富		谈判胜利后提升获得经验与现金{0=200#0}%
//26		收入保障		{1=90069#0}{2=90070#0}{3=90071#0}共同出场时，提升{0=100#0}%本次谈判所获得的现金和经验
public class RAISE_REWARD_EXP_AND_MONEY_CONTEXT extends EmployeeSkillBattleContext {

	public RAISE_REWARD_EXP_AND_MONEY_CONTEXT(PlayerBattler player, EmployeeSkill ref) {
		super(player, ref);
	}

	@Override
	public boolean trigger() {
		return false;
	}

	@Override
	public <T> T calc(int id, Object... vals) {
		Float v = ref.getTemplate().getInitVal(0) / GameStaticConfig.percentBase;
		return (T) v;
	}

}
